package com.louzhu.gulimall.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@EnableRedisHttpSession
//@EnableTransactionManagement
// 开启远程调用功能，声明远程调用接口
@EnableFeignClients(basePackages = "com.louzhu.gulimall.product.feign")
@EnableDiscoveryClient
// 开启缓存
@EnableCaching
// 扫描dao层接口
//@MapperScan("com.louzhu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
